package com.zxw.user.mapper;

import com.zxw.user.domain.dto.RoleBtnDTO;
import org.apache.ibatis.annotations.Param;

import com.zxw.user.domain.entity.RoleButton;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-02-27
 */
public interface RoleButtonMapper extends BaseMapper<RoleButton> {

    List<Long> getBtnIdByRoleIdAndMenuIdAndCompanyId(
            @Param("roleId") Long roleId,
            @Param("menuId") Long menuId,
            @Param("companyId") Long companyId);

    List<RoleBtnDTO> getRoleBtnByRoleName(@Param("companyId") Long companyId, @Param("roleNames") List<String> roleName);

}
